import request from '@/utils/request';
export const sendCodeAPI = (mobile: string) => {
  return request({
    url: '/v1_0/sms/codes/' + mobile,
  });
};

export const loginAPI = (mobile: string, code: string) => {
  return request({
    url: '/v1_0/authorizations',
    method: 'post',
    data: {
      mobile,
      code,
    },
  });
};
